package com.luo.partner.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class TabRedRecord implements Serializable {
    /**
     * 红包领取记录ID
     *
     * @mbggenerated
     */
    private Long recordId;

    /**
     * 红包ID
     *
     * @mbggenerated
     */
    private Integer redId;

    /**
     * 红包名称
     *
     * @mbggenerated
     */
    private String redName;

    /**
     * 描述
     *
     * @mbggenerated
     */
    private String description;

    /**
     * 用户ID
     *
     * @mbggenerated
     */
    private Long usrsId;

    /**
     * 红包面额
     *
     * @mbggenerated
     */
    private BigDecimal amount;

    /**
     * 状态0未使用，1已经使用
     *
     * @mbggenerated
     */
    private Integer state;

    private Date createTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Long getRecordId() {
        return recordId;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public Integer getRedId() {
        return redId;
    }

    public void setRedId(Integer redId) {
        this.redId = redId;
    }

    public String getRedName() {
        return redName;
    }

    public void setRedName(String redName) {
        this.redName = redName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getUsrsId() {
        return usrsId;
    }

    public void setUsrsId(Long usrsId) {
        this.usrsId = usrsId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", recordId=").append(recordId);
        sb.append(", redId=").append(redId);
        sb.append(", redName=").append(redName);
        sb.append(", description=").append(description);
        sb.append(", usrsId=").append(usrsId);
        sb.append(", amount=").append(amount);
        sb.append(", state=").append(state);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TabRedRecord other = (TabRedRecord) that;
        return (this.getRecordId() == null ? other.getRecordId() == null : this.getRecordId().equals(other.getRecordId()))
            && (this.getRedId() == null ? other.getRedId() == null : this.getRedId().equals(other.getRedId()))
            && (this.getRedName() == null ? other.getRedName() == null : this.getRedName().equals(other.getRedName()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
            && (this.getUsrsId() == null ? other.getUsrsId() == null : this.getUsrsId().equals(other.getUsrsId()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRecordId() == null) ? 0 : getRecordId().hashCode());
        result = prime * result + ((getRedId() == null) ? 0 : getRedId().hashCode());
        result = prime * result + ((getRedName() == null) ? 0 : getRedName().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getUsrsId() == null) ? 0 : getUsrsId().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}